<?php
return CMap::mergeArray(
	require 'global.php',
	require 'params.php',
	array(
		'components'=>array(
			'bootstrap'=>array(
				'class'=>'jii.vendors.bootstrap.BootstrapComponent',
			),//bootstrap
			
			'user'=>array(
				'allowAutoLogin'=>true,
			),//user
				
			'urlManager'=>array(
				'urlFormat' => 'path',
				'showScriptName' => false,
				'urlSuffix' => '.shtml',
				'rules' => array(
					'<controller:\w+>/<id:\d+>'=>'<controller>/view',
					'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
				),
			),//urlManager
				
			'errorHandler'=>array(
				'errorAction'=>'site/error',
			),//errorHandler
				
		),//components
	),
	require 'dev.php'
);